package com.akk.module.message;


import com.akk.module.message.enums.MessageEnums;

public final class MessageFactory {

    public static MessageService build(Integer type){
        //配置信息
        if (type == MessageEnums.MsgType.NORMAL.getValue())

            return SpecialMessageService.getInstance(); //个性短信
        if (type == MessageEnums.MsgType.SPECIAL.getValue())
            return NormalMessageService.getInstance();
        return null;
    }
}
